package com.todo.config;

import com.todo.utils.UIDUtil;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api(tags = "测试接口")
@Slf4j
@RequestMapping("/test")
public class TestController {

    @Resource
    private UIDUtil uidUtil;

    /**
     *测试uidUtil获取uid功能
     *
     * @return
     */
    @GetMapping("/uid-getter")
    public String testUIDGetter(){
        return uidUtil.getUID();
    }
}
